# coding=utf-8

def append() :
    a = "a,3,5,4";
    print(a + "d");
    print(a.join("d"));
    print(a.join(["", "d"]));


def join():
    a = "123";
    print(a.join("a"));  # a
    print(a.join(["a"]));  # a
    print(a.join(["", "a"]));  # 123a
    print(",".join(["a", "b"]));  # a,b

def split() :
    a = "a,3,5,4";
    print(a.split(",")); #['a', '3', '5', '4']
    print(a); #a,3,5,4
    print(a.rsplit(",")); #['a', '3', '5', '4']
    print(a); #a,3,5,4
    print(a.split(",", 1)); #['a', '3,5,4']
    print(a.rsplit(",", 1)); #['a,3,5', '4']

def count() :
    a = "abc,abc,def,ed,ffabc";
    print(a.count("abc"));#3

def center() :
    print("abc".center(5)); #  abc
    print("abcdef".center(5)); #abcdef

def weekDay(day) :
    index = day % 7
    if index == 1:
        return "星期一"
    elif index ==2 :
        return "星期二"

    # if index == 1:
    #     return "星期一"
    #
    # if index <= 1 and index ==2:
    #     return "星期一"

    # if index == 2:
    #     return "星期二"
    # if index == 3:
    #     return "星期三"
    # if index == 4:
    #     return "星期四"
    # if index == 5:
    #     return "星期五"

if __name__ == '__main__':
    append();
    # print("abcdefgg".center(5))